package enemies;

import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.doge.*;
import com.doge.Character;

public class AngryCabbage extends Character


{	
	public AngryCabbage(TextureRegion t, Tile position){
		super(t,position);
		
		name = "Angry Cabbage";
		health = 80;
		dogeCoins = 35;
		/*name, statamt, stat(0 = dmg, 1 = healing), energyreq*/
		battleActions.add(new BattleAction("Rotting Breath",5,0,0));
		battleActions.add(new BattleAction("Pure Rage",30,0,50));
		battleActions.add(new BattleAction("Psuedo-Synthesis",20,1,30));
		battleActions.get(2).isLocking = true;
	}
	
	public AngryCabbage(Tile position){
		this(Textures.angryCabbage, position);
	}
	
	public BattleAction getNextAction()
	{
		if(energy >=30 && health <25)
		{
			return battleActions.get(2);
		}
		else if (energy >= 50)
			return battleActions.get(1);
		else
			return battleActions.get(0);
	}

}